package com.java.demoTest;

import org.junit.Test;

/**
 * @Author: zerodragon.cn
 * @Description:
 * @Date: Created in 8:42 2019/10/16
 * @Modified By:zeroDragon
 */
public class Rectangle {
    private int W;
    private int H;

    public int area(){
        return W*H;
    }

    public int getW() {
        return W;
    }

    public void setW(int w) {
        W = w;
    }

    public int getH() {
        return H;
    }

    public void setH(int h) {
        H = h;
    }
    @Test
    public void test(){
        Rectangle r = new Rectangle();
        r.setH(3);
        r.setW(6);
        System.out.println(r.area());;
    }
}
